<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
    <meta http-equiv="Pragma" content="no-cache">
    <meta http-equiv="Cache-control" content="no-cache">
    <meta http-equiv="Cache" content="no-cache">
    <meta http-Equiv="Expires" Content="0"/>
    <title>基于SpringBoot2.0的JVM性能监控</title>
    <link rel="stylesheet" href="../layui/css/layui.css">
</head>
<body class="layui-layout-body">
<div class="layui-layout layui-layout-admin">
    <div class="layui-header">
        <div class="layui-logo">layui 后台布局</div>
        <!-- 头部区域（可配合layui已有的水平导航） -->
        <ul class="layui-nav layui-layout-left">
            <li class="layui-nav-item"><a href="">控制台</a></li>
            <li class="layui-nav-item">
                <a href="javascript:;">其它系统</a>
                <dl class="layui-nav-child">
                    <dd><a href="">邮件管理</a></dd>
                    <dd><a href="">消息管理</a></dd>
                    <dd><a href="">授权管理</a></dd>
                </dl>
            </li>
        </ul>
        <ul class="layui-nav layui-layout-right">
            <li class="layui-nav-item">
                <a href="javascript:;">
                    <img src="http://t.cn/RCzsdCq" class="layui-nav-img">
                    boot-actuator
                </a>
                <dl class="layui-nav-child">
                    <dd><a href="">基本资料</a></dd>
                    <dd><a href="">安全设置</a></dd>
                </dl>
            </li>
            <li class="layui-nav-item"><a href="">退了</a></li>
        </ul>
    </div>

    <div class="layui-side layui-bg-black">
        <div class="layui-side-scroll">
            <!-- 左侧导航区域（可配合layui已有的垂直导航） -->
            <ul class="layui-nav layui-nav-tree" lay-filter="test">
                <li class="layui-nav-item layui-nav-itemed">
                    <a href="javascript:;"><i class="layui-icon layui-icon-set-fill"></i> 监控列表</a>
                    <dl class="layui-nav-child" id="main">


                    </dl>
                </li>

            </ul>
        </div>
    </div>

    <div class="layui-body">
        <iframe src="weclom.html" frameborder="0" id="demoAdmin" style="width: 100%; height: 100%;"
                name="myFrameName"></iframe>
    </div>

    <div class="layui-footer">
        <!-- 底部固定区域 -->
        © https://gitee.com/qinxuewu
    </div>
</div>
<script src="../layui/layui.js"></script>
<script src="../js/config.js"></script>
<script>
    //JavaScript代码区域
    layui.use(['element', 'jquery'], function () {
        var element = layui.element, $ = layui.jquery;
        $.ajax({
            url: baseURl + "/bootactuator/list",
            dataType: "json",
            type: "post",
            success: function (data) {
                $.each(data.data, function (index, obj) {
                    var url = 'main.html?key=' + obj.url + '&name=' + obj.name;
                    var html = '<dd><a href="' + url + '"  target="myFrameName" >' + obj.name + '</a></dd>';
                    $("#main").append(html)
                })
            }
        })

    });
</script>
</body>
</html>